/* 
 *   WWW.COO8.COM  
 */

package com.gm.memberShip.menu.business.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.gm.memberShip.menu.business.interfaces.IUserRightManager;
import java.util.*;
import org.apache.commons.lang.StringUtils;
 

import com.gm.memberShip.menu.model.*;
import com.gm.memberShip.menu.persistence.interfaces.*;
import com.gm.memberShip.menu.business.interfaces.*;  

/**
 * @author  JIANGCHENG
 * @version 1.0
 * @since 1.0
 */


 
public class UserRightManagerImpl   implements IUserRightManager{

	private IUserRightDAO userRightDAO; 

	public void setUserRightDAO(IUserRightDAO dao) {
		this.userRightDAO = dao;
	} 

	 
	@Transactional(readOnly=true)
	public UserRight getById(java.lang.Integer id){
		return userRightDAO.getById( id);
	}
	@Transactional
	public void deleteById(java.lang.Integer id){
		userRightDAO.deleteById(id);
	}
	 
	@Transactional
	public void save(UserRight entity){
		userRightDAO.save(entity);
	}
	 
	@Transactional
	public void update(UserRight entity){
		userRightDAO.update(entity);
	}
 
	@Transactional(readOnly=true)
   public List<UserRight> findAll(Map<String, Object> search){
		return userRightDAO.findByMap(search);
	}

}
